<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        var http = "http://192.168.4.18?limit=20&offset=0";
        var res = http.split("?")[1].split("&");
        console.log(res);
        var obj = res.map(item=>{
            var obj = {};
            obj[item.split("=")[0]] = item.split("=")[1];
            return obj;
        })
        console.log(obj);
    </script>
</body>
</html>